//
//  TickersHeader.h
//  UEAssistant
//
//  Created by mac on 2017/7/28.
//  Copyright © 2017年 youyixinxi. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol FoldTickersSectionHeaderViewDelegate <NSObject>

- (void)foldHeaderInSection:(NSInteger)SectionHeader;

- (void)selectTikkets:(UIButton *)sender section:(NSInteger)sectionHeader;

@end

@interface TickersHeader : UITableViewHeaderFooterView

@property (nonatomic, strong) UIImageView  *seletImage;
@property (nonatomic, strong) UIImageView        *typeImage;
@property (nonatomic, assign) BOOL fold;/**< 是否折叠 */
@property (nonatomic, assign) NSInteger section;/**< 选中的section */
@property (nonatomic, weak) id<FoldTickersSectionHeaderViewDelegate> delegate;/**< 折叠协议 */
@property (nonatomic, strong) UIButton          *selectButton;
@property (nonatomic, strong) UILabel           *PaidLabel;

- (void)cellAutoLayouHeight:(NSInteger )height;


/**
 初始化头部信息
 
 @param title 头部的标题
 @param detail 头部的详情
 @param section 第几组
 @param canFold 判断是否能展开section
 */
- (void)setFoldSectionHeaderViewWithTitle:(NSString *)title detail:(NSString *)detail section:(NSInteger)section canFold:(BOOL)canFold height:(CGFloat)height;


@end
